﻿using _10_HPBar;
using _10_HPBar.GameFrame.System;
using _10_HPBar.Items;
using _10_HPBar.Items.Base;
using _10_HPBar.Tool;

//Dictionary<int, string> dic = new();
//// Dictionary无法多次添加相同的Key Add会报错 索引器会覆盖
//// 因为Key是字典查找数据的关键依据 就跟数组的下标一样
//// 字典可以通过[Key]访问对应的Value(索引器)
//// 如果Key不存在 就会自动添加 存在就覆盖

//dic.Add(1,"1");
//dic.Add(3,"3");
//dic.Add(2,"2");
////dic[3] = "6";

//// 迭代器 IEnumerator
//// 只有继承了它 才能被foreach
//// var 自动识别后面数据的类型 必须
//foreach (var item in dic)
//{
//    Console.WriteLine($"Key:{item.Key},Value:{item.Value}");
//}


//return;

//Test t1 = new Test();
//t1.Print();
//Test.Instance.Print
//EventSystem eventSystem = new EventSystem();
//Item item = new RedPotion();

//Console.WriteLine(item.GetType());

//return;

GameTest game = new GameTest();
game.Play();


//class Test : TSingleton<Test>
//{
//    public void Print()
//    {

//    }
//}

//Player p = new Player("player", 100, 50, 10, 5);
//Enemy e = new Enemy("enemy", 200, 30, 8, 2);

//CombatSystem cs = new CombatSystem();
////cs.ShowInfo(p, 20, 2);
////cs.ShowInfo(e, 10, 2);

//cs.StartCombat(p, e);


//while (true)
//{
//    InputSystem.Instance.Update();
//    cs.Input();
//    //cs.ShowMenu(10, 5);
//    cs.Update();
//    cs.Render();
//    InfoSystem.Instance.PrintInfo();
//}


